import axios from "@/util/request.js";
import base from '../base.js'

export const position = {
  getPositionStatusEnums: () => axios.get(`${base.baseUrl}/position/getStatusEnums`),
  getlistPositionByPage: (data) => axios.post(`${base.baseUrl}/position/list/page`,data),
  getlistPostVOByPage: (data) => axios.post(`${base.baseUrl}/position/list/page/vo`, data),
  getPositionVOById: (id) => axios.get(`${base.baseUrl}/position/${id}`), // 通过职位id查询信息
  getlistMyPostVOByPage: (data) => axios.post(`${base.baseUrl}/position/my/list/page/vo`, data),
  addPosition: (data) => axios.post(`${base.baseUrl}/position/add`, data),
  updatePosition: (data) => axios.post(`${base.baseUrl}/position/update`, data),
  deletePosition: (data) => axios.post(`${base.baseUrl}/position/delete`,data),
  editPosition: (data) => axios.post(`${base.baseUrl}/position/edit`, data),  
  releasePosition: (data) => axios.post(`${base.baseUrl}/position/release`, data),
  getMyCompanyPositionList :(data) => axios.get(`${base.baseUrl}/position/get/my/company/position?userId=${data}`),
  predict:(data)=>axios.post(`${base.baseUrl}/model/predict`,data),
  getSimpleApplicationCountByPosition:(data) => axios.get(`${base.baseUrl}/position/get/my/position/application?userId=${data}`),

  getPositionById: (id) => axios.get(`${base.baseUrl}/position/get/vo?id=${id}`),
}